﻿using System;
using System.Collections.Generic;
using Acaweb.Data.Contracts;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Spring.Transaction.Interceptor;

namespace Acaweb.Data.Dao.NHibernate
{
    public class PrematriculasDao : HibernateDao<Prematriculas, PrematriculaPk>, IPrematriculasDao
    {
        public IList<Prematriculas> GetAll()
        {
            return GetAll<Prematriculas>();
        }

        public IList<Prematriculas> GetByCodigoEstudiante(int CodigoEstudiante)
        {
            return this.Session.QueryOver<Prematriculas>().Where(t => t.PrematriculaPk.CodigoEstudiante == CodigoEstudiante).List();
        }
    }
}
